import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;


public class Util {
	/**
	 * Sets the look and feel for the whole application. It starts trying to
	 * apply the GTK LnF, if an exception is thrown it tooks the system look and
	 * feel.
	 */
	public static void setLookNFeel() {
		try {
//			 UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
			UIManager.setLookAndFeel("com.sun.java.swing.plaf.gtk.GTKLookAndFeel");
//			UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");

//			UIManager.setLookAndFeel("ch.randelshofer.quaqua.QuaquaLookAndFeel");
//			UIManager.setLookAndFeel("net.sourceforge.napkinlaf.NapkinLookAndFeel");
//			UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel");
//			UIManager.setLookAndFeel("com.nilo.plaf.nimrod.NimRODLookAndFeel");
//			 UIManager.setLookAndFeel("com.sun.java.swing.plaf.motif.MotifLookAndFeel");
//			 UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");

		} catch (ClassNotFoundException e) {
			try {
				UIManager.setLookAndFeel(UIManager
						.getSystemLookAndFeelClassName());
			} catch (ClassNotFoundException e1) {
			} catch (InstantiationException e1) {
			} catch (IllegalAccessException e1) {
			} catch (UnsupportedLookAndFeelException e1) {
			}
		} catch (InstantiationException e) {
		} catch (IllegalAccessException e) {
		} catch (UnsupportedLookAndFeelException e) {
		}
	}
}
